package com.jd.domain;

import java.util.List;

public class Dept {

    private Long id;

    private String dname;

    private List<Emp> emps;

    public Dept() {
    }


    public Dept(String dname) {
        this.dname = dname;
    }

    public Dept(Long id, String dname) {
        this.id = id;
        this.dname = dname;
    }

    public Dept(Long id, String dname, List<Emp> emps) {
        this.id = id;
        this.dname = dname;
        this.emps = emps;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public List<Emp> getEmps() {
        return emps;
    }

    public void setEmps(List<Emp> emps) {
        this.emps = emps;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", dname='" + dname + '\'' +
                ", emps=" + emps +
                '}';
    }
}
